package com.example.administrator.familfinalcialmanagement.ui.activity;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.example.administrator.familfinalcialmanagement.R;
import com.example.administrator.familfinalcialmanagement.databinding.ActivityMyOrdersBinding;
import com.example.administrator.familfinalcialmanagement.ui.BaseActivity;

public class MyOrdersActivity extends BaseActivity {

    ActivityMyOrdersBinding binding;

    /**
     * 1 未发货
     * 2 已发货
     * 3 已完成
     * 4 已支付
     */
    String type;

    String stroeStype  = "" ,payStype = "";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate( savedInstanceState );
        binding = DataBindingUtil.setContentView( this, R.layout.activity_my_orders );
        binding.setActivity( this );
        initView();

    }

    private void initView() {
        setBack();
        setTitleText( "我的订单" );

        type = getIntent().getStringExtra( "module_type" );
        switch (type) {
            case "1":
                stroeStype = "0";
                break;
            case "2":
                stroeStype = "1";
                break;
            case "3":
                stroeStype = "2";
                break;
            case "4":
                payStype = "1";
                break;
            default:
        }
    }
}
